home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / comm_c_3.zip / COMM.H < prev   
C/C++ Source or Header  |  1993-05-06  |  934b  |  31 lines

  1. #ifndef TCICOMM
  2.    extern int xonxoff;  /* auto xon/xoff support is on flag */
  3.    extern int portin;   /* com port is open flag */
  4.    extern int xofsnt;   /* XOFF transmitted flag */
  5.    extern int xofrcv;   /* XOFF received flag */
  6. #endif
  7.  
  8. #ifndef TIMEOUT         /* Define Timeout if not already */
  9. #define TIMEOUT -1
  10. #endif
  11. #define USR_BRK -2
  12.  
  13. /* port number parameters for comm_open() */
  14.  
  15. #define COM1 1          /* These are not really used but were */
  16. #define COM2 2          /* here before. They can be commented */
  17. #define COM3 3          /* out */
  18. #define COM4 4
  19.  
  20. /* prototypes for externally called functions */
  21.  
  22. int  comm_open  ( int portid, unsigned speed );
  23. void comm_close ( void );
  24. void comm_flush ( void );
  25. int  comm_avail ( void );
  26. void comm_putc  ( unsigned char c );
  27. int  comm_getc  ( unsigned seconds );
  28. void flsh_dtr   ( void );
  29. int  carrier    ( void );
  30. void delay      (int msecs);
  31.